package main

import (
	"kubeconsole/start/app/options"
	"kubeconsole/utils/signals"
	"log"
)

func main() {
	s := options.NewServerRunOptions()
	s.KubernetesOptions.KubeConfig = "D:\\code\\kubeConsole\\admin.conf"
	s.KubernetesOptions.Master = "http://192.168.169.3:8080"
	apiserver, err := s.NewAPIServer()
	if err != nil {
		log.Fatal(err)
	}

	err = apiserver.PrepareRun()
	if err != nil {
		log.Fatal(err)
	}

	err = apiserver.Run(signals.SetupSignalHandler())
	if err != nil {
		log.Fatal(err)
	}
}
